package cn.northsea.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ratelie
 * @info 系统管理_用户管理
 */
@Data
@TableName(value = "seek_user")
public class SeekUser implements Serializable {

    private static final long serialVersionUID = 375474456186990193L;

    /** 用户ID */
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long userId;

    /** 用户账号 */
    @TableField(value = "username")
    private String username;

    /** 用户密码 */
    @TableField(value = "password")
    private String password;

    /** 真实姓名 */
    @TableField(value = "real_name")
    private String realName;

    /** 用户邮箱 */
    @TableField(value = "email")
    private String email;

    /** 用户手机号 */
    @TableField(value = "phone")
    private String phone;
    /** 期望工作地点 */
    @TableField(value = "address")
    private String address;
    /** 期望薪资 */
    @TableField(value = "money")
    private String money;
    /** 期望工作 */
    @TableField(value = "job")
    private String job;
    /** 用户头像 */
    @TableField(value = "avatar")
    private String avatar;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time" , fill = FieldFill.INSERT)
    private Date createTime;

    /** 删除标识,(默认为 0未删除,1已删除) */
    @TableLogic
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    private Integer deleted;

    /** 租户ID */
    @JsonSerialize(using= ToStringSerializer.class)
    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private Long tenantId;
}
